#!/bin/bash
#MSUB -r paral-gspw_05   # Job name
#MSUB -T 1000            # Elapsed time of the job
#MSUB -A tgcc0002        # Project number
#MSUB -n 432             # Number of processors
#MSUB -o paral-gspw_05.o # Standard output
#MSUB -e paral-gspw_05.e # Error output

set -x

ABINIT=/ccc/work/cont005/pa0397/bottinf/6.10.1-public/curie/src/98_main/abinit
TMPDIR=$SCRATCHDIR/paral-gspw_05
mkdir $TMPDIR
cd $TMPDIR

rm -rf *log *.out *.in *.files
cp $BRIDGE_MSUB_PWD/tgspw_05.in     $TMPDIR/
cp $BRIDGE_MSUB_PWD/tgspw_05.files  $TMPDIR/
cp $BRIDGE_MSUB_PWD/79au.pspnc      $TMPDIR/

ccc_mprun $ABINIT < tgspw_05.files > tgspw_05.log

cp $TMPDIR/tgspw_05.out $BRIDGE_MSUB_PWD/tgspw_05.out
cp $TMPDIR/tgspw_05.log $BRIDGE_MSUB_PWD/tgspw_05.log
